﻿using System;
using System.Collections.Generic;

namespace Model
{
	public class PointComparer : IComparer<PointSort>
	{
		int IComparer<PointSort>.Compare(PointSort first, PointSort second)
		{
			if (Math.Abs(first.Param - second.Param) < SortableEquip.s_dEpsilon)
			{
				return 0;
			}
			if (first.Param <= second.Param)
			{
				return -1;
			}
			return 1;
		}
	}
}
